package com.effvi.jdk.lang.string;

/**
 * String类学习
 * @author kelvin.zhang
 *
 */
public class StringStudy {
	public static void main(String[] args) {
		String hello = "hello";
		String hello4 = "hello";
		String hello1 = new String("hello");
		String hello2 = new String("hello");
		System.out.println(hello == hello4);
		System.out.println(hello.equals(hello4));
		System.out.println(hello1 == hello2);
		System.out.println(hello1.equals(hello4));
//		true
//		true
//		false
//		true
	}
}
